package com.thinkgem.jeesite.modules.sys.dao;

import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.TbAttachment;
import com.thinkgem.jeesite.modules.sys.entity.TbAttachmentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@MyBatisDao
public interface TbAttachmentMapper {
    int countByExample(TbAttachmentExample example);

    int deleteByExample(TbAttachmentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbAttachment record);

    int insertSelective(TbAttachment record);

    List<TbAttachment> selectByExample(TbAttachmentExample example);

    TbAttachment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbAttachment record, @Param("example") TbAttachmentExample example);

    int updateByExample(@Param("record") TbAttachment record, @Param("example") TbAttachmentExample example);

    int updateByPrimaryKeySelective(TbAttachment record);

    int updateByPrimaryKey(TbAttachment record);

    List<TbAttachment> selectByFkId(int id);
}